<template>
  <div @click="playGame(item.play_url)" class="item">
    <img class="item__icon" :src="item.icon">
    <p class="item__name">{{item.gamename}}</p>
  </div>
</template>

<script>
export default {
  name: 'rowGrayItem',
  props: {
    item: {
      type: Object
    }
  }
}
</script>

<style scoped lang="scss">
.item {
  background-color: rgba(230, 230, 230, 0.5);
  border-radius: 0.06rem;
  display: inline-block;
  height: 1.17rem;
  margin: -0.15rem 0.1rem 0 0;
  text-align: center;
  vertical-align: top;
  width: 0.86rem;

  &:last-child {
    margin-right: 0.15rem;
  }

  &__icon {
    border-radius: 50%;
    height: 0.68rem;
    margin: 0.12rem 0 0.09rem;
    width: 0.68rem;
  }

  &__name {
    color: #333;
    font-size: 0.13rem;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__remark {
    color: #999;
    font-size: 0.1rem;
    margin-top: 0.03rem;
  }
}
</style>
